package com.atguigu.tingshu.order.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.order.client.OrderFeignClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderDegradeFeignClient implements OrderFeignClient {

    private static final Logger log = LoggerFactory.getLogger(OrderDegradeFeignClient.class);

    @Override
    public Result<OrderInfo> getOrderInfo(String orderNo) {
        log.error("[订单服务]提供远程调用方法getOrderInfo执行服务降级");
        return null;
    }

    /**
     * 更新订单支付信息
     * @param orderNo
     * @return
     */
    @Override
    public Result orderPaySuccess(String orderNo) {
        return null;
    }
}
